package org.jeecg.modules.mes.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Description: 计件工资标准表
 * @Author: jeecg-boot
 * @Date: 2025-01-01
 * @Version: V1.0
 */
@Data
@TableName("mes_piece_rate_standard")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="mes_piece_rate_standard对象", description="计件工资标准表")
public class MesPieceRateStandard implements Serializable {
    private static final long serialVersionUID = 1L;

    /**主键ID*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private String id;

    /**工种ID*/
    @Excel(name = "工种ID", width = 15)
    @ApiModelProperty(value = "工种ID")
    private String workTypeId;

    /**工种名称*/
    @Excel(name = "工种名称", width = 15)
    @ApiModelProperty(value = "工种名称")
    private String workTypeName;

    /**产品类别*/
    @Excel(name = "产品类别", width = 15)
    @ApiModelProperty(value = "产品类别")
    private String productCategory;

    /**产品规格*/
    @Excel(name = "产品规格", width = 15)
    @ApiModelProperty(value = "产品规格")
    private String productSpec;

    /**基础计件单价*/
    @Excel(name = "基础计件单价", width = 15)
    @ApiModelProperty(value = "基础计件单价")
    private BigDecimal baseRate;

    /**难度系数*/
    @Excel(name = "难度系数", width = 15)
    @ApiModelProperty(value = "难度系数")
    private BigDecimal difficultyFactor;

    /**质量奖励比例*/
    @Excel(name = "质量奖励比例", width = 15)
    @ApiModelProperty(value = "质量奖励比例")
    private BigDecimal qualityBonusRate;

    /**效率奖励比例*/
    @Excel(name = "效率奖励比例", width = 15)
    @ApiModelProperty(value = "效率奖励比例")
    private BigDecimal efficiencyBonusRate;

    /**生效日期*/
    @Excel(name = "生效日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "生效日期")
    private Date effectiveDate;

    /**失效日期*/
    @Excel(name = "失效日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "失效日期")
    private Date expireDate;

    /**状态*/
    @Excel(name = "状态", width = 15, dicCode = "valid_status")
    @Dict(dicCode = "valid_status")
    @ApiModelProperty(value = "状态")
    private Integer status;

    /**是否默认*/
    @Excel(name = "是否默认", width = 15, dicCode = "yn")
    @Dict(dicCode = "yn")
    @ApiModelProperty(value = "是否默认")
    private Integer isDefault;

    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;

    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;

    /**创建时间*/
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;

    /**更新时间*/
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    /**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;

    /**租户ID*/
    @ApiModelProperty(value = "租户ID")
    private Integer tenantId;
}
